package com.serverTechnology.teamsGroups.entity;

import cn.hutool.core.date.DateTime;
import cn.stylefeng.roses.kernel.db.api.pojo.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Data;
import org.springframework.beans.factory.parsing.BeanEntry;

/**
 * 班组人员
 */
@TableName("TE_GROUP_USER")
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "GroupUser", description = "班组人员")
public class GroupUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ChineseDescription("ID")
    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("ID")
    private Long id;

    /**
     * 班组ID
     */
    @ChineseDescription("班组ID")
    @TableField("GROUP_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("班组ID")
    private Long groupId;

    /**
     * 用户ID
     */
    @ChineseDescription("用户ID")
    @TableField("USER_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("用户ID")
    private BigDecimal userId;

    /**
     * 是否为班长
     */
    @ChineseDescription("是否为班长")
    @TableField("MONITOR")
    @ApiModelProperty("是否为班长")
    private Integer monitor; // 修改为 Integer，因为数据库定义为 NUMBER(1)

    /**
     * 备注
     */
    @ChineseDescription("备注")
    @TableField("REMARK")
    @ApiModelProperty("备注")
    private String remark;

}
